"""Basic usage of the kbqa module.

This is an interactive example, you can type 'quit' to exit.
Just enjoy it!
"""

from kbqa import Robot

def main():
    """Easy to use."""
    robot = Robot()  # Make a robot for question answering

    while True:
        question = input('请出入问题：')
        if question == 'quit':
            print('欢迎下次使用!')
            break
        else:
            response = robot.request(question, '0000-0001')
            print('问题回答：{}'.format(response))


if __name__ == '__main__':
    main()
